package com.imooc.reader.management.mapper;

import com.imooc.reader.management.entity.Menu;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MenuMapper {
    @Select("select distinct m.* from role_user ru , role_menu rm , menu m where ru.role_id = rm.role_id and rm.menu_id = m.menu_id and ru.user_id = #{value} order by seq asc")
    public List<Menu> getMenuByUserId(Integer userId);
}
